package net.tycmc.cty.ctyms.web.maintAlertManual;

import net.tycmc.cty.ctyms.timejob.iems.service.MaintAlertsService;

public class MaintAlertManualService{
	private MaintAlertsService maintAlertsService;
	private MaintAlertManualDao dao;
	
	
	public MaintAlertsService getMaintAlertsService() {
		return maintAlertsService;
	}

	public void setMaintAlertsService(MaintAlertsService maintAlertsService) {
		this.maintAlertsService = maintAlertsService;
	}

	public MaintAlertManualDao getDao() {
		return dao;
	}

	public void setDao(MaintAlertManualDao dao) {
		this.dao = dao;
	}

	//获得最近三天 保养计划提醒信息 列表数量
	public int[] getInfoListCount(){
		return dao.getInfoListCount();
	}
	//获得最近三天 保养计划提醒信息表 数量
	public int[] getCount(){
		return dao.getCount();
	}
	
	//删除上次统计失败的数据
	public boolean deleteData(){
		return dao.deleteList();
	}
	
	//重新执行统计
	public void startJob(){
		maintAlertsService.startWork();
	}
}
